<?php echo form_open(base_url().'books/edit'); ?>

	<input type="hidden" name="id" value="<?php echo isset($book)&& !empty($book->id) ? $book->id : '' ?>" />

	<label>Titel</label>
	<input type="text" value="<?php echo isset($book) ? $book->title : '' ?>" name="title" />
	<br>
	
	<label>Beschreibung</label>
	<input type="text" value="<?php echo isset($book) ? $book->description : '' ?>" name="description" />
	<br>
	
	<?php echo form_submit('submit','Update');  ?>
<?php echo form_close(); ?>
